package com.fpost.domain;

import java.util.Date;

public class ArticleRating {
	
	private long articleRatingId;
	private Article article;
	private int rating;	
	private Date createdOn;
	private Long createdBy;
	private String createdIp;
	private long lockSeqNum;
	
	public long getArticleRatingId() {
		return articleRatingId;
	}
	public void setArticleRatingId(long articleRatingId) {
		this.articleRatingId = articleRatingId;
	}
	public Article getArticle() {
		return article;
	}
	public void setArticle(Article article) {
		this.article = article;
	}
	public int getRating() {
		return rating;
	}
	public void setRating(int rating) {
		this.rating = rating;
	}
	public Date getCreatedOn() {
		return createdOn;
	}
	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}
	public Long getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(Long createdBy) {
		this.createdBy = createdBy;
	}
	public String getCreatedIp() {
		return createdIp;
	}
	public void setCreatedIp(String createdIp) {
		this.createdIp = createdIp;
	}
	public long getLockSeqNum() {
		return lockSeqNum;
	}
	public void setLockSeqNum(long lockSeqNum) {
		this.lockSeqNum = lockSeqNum;
	}
	
	public void printDetails() {
		System.out.println("ArticleRating details:");
		System.out.println("-articleRatingId=" + articleRatingId);
		System.out.println("-article=" + article.getArticleId());
		System.out.println("-createdOn=" + createdOn);
		System.out.println("-createdBy=" + createdBy);
		System.out.println("-createdIp=" + createdIp); 

	}
}
